	@extends('template/master')
	
	@section('pageTitle')
		{{ Lang::get('label.homePageTitle')}}
	@stop
	
	@section( 'socialMedia' ) 
	<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
	<script type="text/javascript">stLight.options({publisher: "f7d48b48-7d27-4a89-885a-c3cf5bb61326", doNotHash: false, doNotCopy: false, hashAddressBar: false});</script>
	@stop
	
	@section( 'reCaptcha' )
	<script type="text/javascript">
 		var RecaptchaOptions = { theme : 'clean' };
 	</script>
 	@stop
	
	@section('content')
	<?php require_once(app_path().'/lib/recaptchalib.php'); $publickey = Options::CAPTCHA_PUBLIC_KEY; ?>
    <!-- Page Content -->
    <div class="container">
        <div class="row">
            <!-- column8 -->
            <div class="col-md-8 col-md-offset-2">

				 	<div class="col-md-9 col-xs-12 clear-padding">
						<ol class="breadcrumb">
  							<li><a href="<?=$homeURL?>">{{ Lang::get('label.home') }}</a></li>
							<li>{{ $headerMenu }}</li>
						</ol>
					</div>
	    			<div class="col-md-3 col-xs-12 different-text-alignment page-flow">
		    			<?php if( !empty($previousPost[0]) ) : ?>
							<a href="{{ SEO::generateNewsURL( $previousPost[0]->id, $previousPost[0]->title) }}"> << {{ Lang::get('label.previousPost'); }}</a> 
						<?php endif;?>
						<?php if( !empty($previousPost[0]) && !empty($nextPost[0]) ) : ?>
						 |
						<?php endif;?>							
						<?php if( !empty($nextPost[0]) ) : ?>
							<a href="{{ SEO::generateNewsURL( $nextPost[0]->id, $nextPost[0]->title) }}">{{ Lang::get('label.nextPost'); }} >></a> 
						<?php endif;?>	
				  	</div>
				
					<!-- category main news -->
					
                    <h6 class="title6">{{ !empty($newsDetails[0] ) ? $newsDetails[0]->title : "" }}</h6>
					<div class="col-md-7 col-xs-12 time-date clear-padding">{{ !empty($newsDetails[0] ) ? date(Options::DATE_TIME_FORMAT,strtotime($newsDetails[0]->created_at)) : "" }} &nbsp;|&nbsp;  {{ Lang::get('label.by'); }} {{ !empty($newsDetails[0] ) ? $newsDetails[0]->username : "" }} </div>
					<div class="col-md-5 col-xs-12 time-date different-text-alignment" style="padding-top:10px;">
						<span class='st_facebook_hcount' displayText='Facebook'></span>
						<span class='st_twitter_hcount' displayText='Tweet'></span>
						&nbsp;|&nbsp; <img src="<?=$imagesPath; ?>/comment.png"> {{ !empty($newsDetails[0] ) ? $newsDetails[0]->noOfComments : "" }} 
					</div>
					
					<div class="clearfix"></div>
					
					<?php  if(!empty($newsDetails[0] ) && !empty($newsDetails[0]->featurePhoto) ) :?>
						<div class="inner-main-img-space"><img src="{{ Options::uploadImagePath().'/'.$newsDetails[0]->featurePhoto }}" alt="" width="748" height="350" class="img-responsive"></div><br>
						<div class="caption">{{ !empty($newsDetails[0]) ? $newsDetails[0]->featurePhotoDesc : "" }}</div>					
					<?php endif; ?>
					
					<div class="category-main-text">
						
						{{ !empty($newsDetails[0]) ? $newsDetails[0]->content : "" }}
						
						
						<div class="col-md-12 col-xs-12 time-date different-text-alignment" style="margin-top:16px;">
							<span class='st_facebook_hcount' displayText='Facebook'></span>
							<span class='st_twitter_hcount' displayText='Tweet'></span>
							&nbsp;|&nbsp; <img src="<?=$imagesPath; ?>/comment.png"> {{ !empty($newsDetails[0] ) ? $newsDetails[0]->noOfComments : "" }} 
						</div>
						
						<div class="col-md-12 col-xs-12 different-text-alignment page-flow" style="margin:15px 0px;">
			    			<?php if( !empty($previousPost[0]) ) : ?>
								<a href="{{ SEO::generateNewsURL( $previousPost[0]->id, $previousPost[0]->title) }}"> << {{ Lang::get('label.previousPost'); }}</a> 
							<?php endif;?>	
							<?php if( !empty($previousPost[0]) && !empty($nextPost[0]) ) : ?>
						 	|
							<?php endif;?>	
							<?php if( !empty($nextPost[0]) ) : ?>
								<a href="{{ SEO::generateNewsURL( $nextPost[0]->id, $nextPost[0]->title) }}">{{ Lang::get('label.nextPost'); }} >></a> 
							<?php endif;?>	
					  	</div>
						
						<div class="clearfix"></div>
						
						<div class="grey-line"></div>
						<!-- Comments -->
						<div class="clearfix" style="height:30px;"></div>
						<span class="title">{{ !empty($newsDetails[0] ) ? $newsDetails[0]->noOfComments : "" }} {{ !empty($newsDetails[0] ) && $newsDetails[0]->noOfComments > 1 ? Lang::get('label.comments') : Lang::get('label.comment') }}</span>
						<div class="clearfix"></div><br>
						
						<?php if( $status != Options::PAGE_NEWS_DETAILS_COMMENT_STATUS_POSTED && $status != Options::PAGE_NEWS_DETAILS_COMMENT_STATUS_VIEW ) : ?>
							<div class="alert alert-danger" role="alert">
								<?php  	
									switch ($status) {
    									case Options::PAGE_NEWS_DETAILS_COMMENT_CAPTCHA_ERROR:
        									echo Lang::get('label.captchaNotMatch');
        								break;
        								case Options::PAGE_NEWS_DETAILS_COMMENT_MESSAGE_BLANK:
        									echo Lang::get('label.commentBlank');
        								break;
    								}
    							?>
							</div>
						<?php endif;?>
						
						{{ Form::open(array('action' => array('CommentController@postComment', Config::get('app.locale'), !empty($newsDetails[0]) ? $newsDetails[0]->id : ""), 'name' => 'formMainComment', 'id' => 'formMainComment' )) }}
  							<div class="form-group">
  								{{ Form::text('txtUserName','',array('id'=>'txtUserName','class'=>'form-control','placeholder'=>Lang::get('label.yourName') )) }} 
 							</div>
							<div class="form-group">								
    							<textarea name="txtMessage" class="form-control" id="" placeholder="{{ Lang::get('label.writeComment'); }}"></textarea>
 							</div>
							<div class="clearfix"></div>
							<?php echo recaptcha_get_html($publickey);?>
  							<br>
							<div class="clearfix"></div>
 							<button type="post" class="btn btn-default">{{ Lang::get('label.submitComment'); }}</button>
						
						{{ Form::close() }}							 
						<div class="clearfix"></div>
						
						<div class="comment-name">Hazim <span class="comment-time-date">&nbsp;|&nbsp; 2 minutes ago </span></div>

						<div class="comment">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, tristique quis viverra vel, tincidunt sed metus. Sed eu bibendum neque.</div>
						
						<div class="reply"><img src="<?=$imagesPath; ?>/reply-btn.jpg"> Reply  </div>   
							
						
						<form role="form" class="form-space">
							
  								 <div class="form-group">
   									
    								<input type="text" class="form-control" id="" placeholder="Your name...">
 								 </div>
  
 
 							 
								 <div class="form-group">
   									
    								<textarea name="message" class="form-control" id="" placeholder="Write your comment here..."></textarea>
 								 </div>
								 
								 

								 
								  <div class="clearfix"></div>
								 
  								  <img src="<?=$imagesPath; ?>/captcha.jpg"><br><br>
								
								  <div class="clearfix"></div>
 							
							     <button type="post" class="btn btn-default">Post</button>
							   

							
						</form>
							
						
						
						<div class="clearfix"></div>
						
						<div class="comment-name-space">Jimmy <span class="comment-time-date">&nbsp;|&nbsp; 25 minutes ago </span></div>

						<div class="comment-space">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit sapien, tristique quis viverra vel, tincidunt sed metus. Sed eu bibendum neque.</div>
						
						
						
						<div class="clearfix"></div>
						
						<div class="comment-name">Aidah <span class="comment-time-date">&nbsp;|&nbsp; 15 minutes ago </span></div>

						<div class="comment">Aenean eget aliquet augue. Nunc pretium imperdiet sem in pellentesque. Cras at mauris tempus, facilisis augue ac, pulvinar neque. Phasellus ullamcorper nunc lorem, et auctor nunc pulvinar id. Pellentesque ornare elit vel imperdiet commodo.</div>
						
						<div class="reply"><img src="<?=$imagesPath; ?>/reply-btn.jpg"> Reply  </div>  
						
						
						
						<div class="clearfix"></div>
						
						<div class="comment-name">Jane <span class="comment-time-date">&nbsp;|&nbsp; 30 minutes ago </span></div>

						<div class="comment">Phasellus et nisi sed augue rhoncus cursus non non magna. Mauris id sem vel dui ultricies volutpat. Praesent ut semper nisl. In at laoreet justo. Etiam sollicitudin mi ac ipsum interdum hendrerit.</div>
						
						<div class="reply"><img src="<?=$imagesPath; ?>/reply-btn.jpg"> Reply  </div> 
						


					
					<div class="more"><a href="#" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image25','','<?=$imagesPath; ?>/more-hover.jpg',1)"><img src="<?=$imagesPath; ?>/more.jpg" name="Image25" width="57" height="18" border="0"></a></div>
					
					</div><!-- category-text -->
				
				
				
            </div><!-- / column8-->

			
			
			



        </div> <!-- /.row -->

				
				
				<div class="clearfix"></div>
				



    </div> 
	<!-- /.container -->
	@stop
	